package com.abocode.aichat.app.user.api.command;

import com.abocode.aichat.app.user.api.vo.GenderEnum;
import lombok.Data;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by guanxf on 2015/12/16.
 */
@Data
public class CreateUserCommand {
    @Enumerated(EnumType.ORDINAL)
    @NotNull
    private GenderEnum sex;

    private int identitytype;
    @Size(max = 128)
    private String identity;
    @NotNull
    @Size(min = 2, max = 20)
    private String market;
}
